<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:39:"./app/template/guojicms/index/html.html";i:1615109898;s:73:"/www/wwwroot/guojicms.com/47.101.46.143/app/template/guojicms/header.html";i:1615109898;s:73:"/www/wwwroot/guojicms.com/47.101.46.143/app/template/guojicms/footer.html";i:1615109898;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title><?php echo $t['title']; ?> - <?php echo set('title'); ?> </title>
	<meta name="keywords" content="<?php echo ks(zw($t['content'])); ?>">
	<meta name="description" content="<?php echo cut_c(htmlspecialchars_decode($t['content'])); ?>">
        <meta name="referrer" content="never">
    <link rel="stylesheet" href="/public/admin/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/public/admin/css/font.css">
    <link rel="stylesheet" href="/public/css/default.css">
    <link href="<?php echo m(); ?>/css/style.css?v=<?php echo set('banben'); ?>" rel="stylesheet">
	<script src="/public/js/jquery-3.4.1.min.js"></script>
    <script src="/public/admin/lib/layui/layui.js"></script>
    <script src="<?php echo m(); ?>/js/public.js?v=<?php echo set('banben'); ?>"></script>
    <!--预埋钩子-->
    <?php echo hook('indexheader'); ?>
</head>
<body>
    <div class="topbox">
        <div class="menu">
            <img src="<?php echo m(); ?>/img/menu.png" />
        </div>
        <!--移动端menu-->
        <div class="menubox">
            <?php if(user('userid')): ?>
            <div class="w_per clearfloat">
                <div class="w_pic">
                    <a href="<?php echo url('index/user/set'); ?>">
                        <img src="<?php echo user('userhead'); ?>">
                    </a>
                </div>
                <div class="w_login">	<span><?php echo user('username'); ?></span>
                </div>
            </div>
            <div class="w_syno">
				<a href="<?php echo url('index/user/set'); ?>"><?php echo dingyi(user('description'),'去写点什么吧...'); ?></a>
			</div>
            <div class="fanbox">
                <div class="w_fan clearfloat">
                    <a href="javascript:;">
                        <p><?php echo fun_st('html', array('uid' => user('userid'))); ?></p>
                        <p>投稿</p>
                    </a>	
                    <span class="wline"></span>
                    <a href="javascript:;">
                        <p><?php echo fun_st('comment', array('uid' => user('userid'))); ?></p>
                        <p>评论</p>
                    </a>	
                    <span class="wline"></span>
                    <a href="javascript:;">
                        <p><?php echo user('point'); ?></p>
                        <p><?php echo set('jifen',2); ?></p>
                    </a>
                </div>
            </div>
            <div class="w_pay clearfloat">
				<a href="<?php echo url('index/user/uid',array('id'=>user('userid'))); ?>" class="w_guan" target="_blank">主页</a> <a href="<?php echo url('index/user/add'); ?>">投稿</a>
			</div>
            <?php else: ?>
            <div class="w_per clearfloat">
                <div class="w_pic">
                    <a href="javascript:;">
                        <img src="/public/img/touxiang.jpg">
                    </a>
                </div>
                <div class="w_login">	
                    <span>欢迎您</span>
                </div>
            </div>
            <div class="fanbox">
                <div class="w_fan clearfloat">
                    <a href="javascript:;">
                        <p><?php echo fun_st('html', array('open' => 1)); ?></p>
                        <p>文章</p>
                    </a>	
                    <span class="wline"></span>
                    <a href="javascript:;">
                        <p><?php echo fun_st('comment', array()); ?></p>
                        <p>评论</p>
                    </a>	
                    <span class="wline"></span>
                    <a href="javascript:;">
                        <p><?php echo fun_st('member', array()); ?></p>
                        <p>会员</p>
                    </a>
                </div>
            </div>
            <div class="w_pay clearfloat">
				<a href="<?php echo url('index/user/login'); ?>" class="w_guan">登录</a> <a href="<?php echo url('index/user/reg'); ?>">注册</a>
			</div>
            <?php endif; ?>
            <div class="w_mav">	
                <a href="/">首页</a>
                <?php $_result=fun_s('link',array('wz'=>1,'open'=>1),'px desc',4,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <a href="<?php echo $vo['lianjie']; ?>" <?php if($vo['xin']==1): ?>target="_blank" <?php endif; ?>><?php echo $vo['name']; ?></a>
                <?php endforeach; endif; else: echo "" ;endif; ?>  
            </div>
            <?php if(user('userid')): ?>
            <div class="w_cen clearfloat">
				<a href="<?php echo url('index/user/set'); ?>" target="_blank" class="w_cent"><img src="<?php echo m(); ?>/img/wset.png">  <span>设置</span></a>
				<a url="<?php echo url('index/api/logout'); ?>" name="确实要退出登录吗" href="javascript:;" class="del_t w_set"><span>退出</span> <span class="wdian"></span></a>
			</div>
            <?php endif; ?>
        </div>
        <div class="mobilezhe"></div>
        <div class="top clearfloat" align="center">
            <div class="logo">
                <a href="/">
                    <img src="<?php echo set('logo'); ?>" />
                </a>
            </div>
            <div class="nav">
                <ul class="clearfloat">
                    <li>
                        <a href="/">首页</a>
                    </li>
                    <?php $_result=fun_s('link',array('wz'=>1,'open'=>1),'px desc',100,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li>
                        <a href="<?php echo $vo['lianjie']; ?>" <?php if($vo['xin']==1): ?>target="_blank" <?php endif; ?>><?php echo $vo['name']; ?></a>
                    </li>
                	<?php endforeach; endif; else: echo "" ;endif; ?>  
                </ul>
            </div>
            <form method="get" class="searchbox clearfloat" action="<?php echo url('index/index/soso'); ?>">
                <input type="text" name="ks" value="<?php echo get('ks',''); ?>" placeholder="关键字" />	
                <button type="submit" class="se_btn" style="background-color: rgba(110, 65, 255, 0);"></button>
            </form>
            <div class="regcut clearfloat">	
                <?php if(user('userid')): ?>
                <div class="login_tou">
                    <a href="javascript:;">
                        <img src="<?php echo user('userhead'); ?>">
                    </a>
                    <div class="login_down">
                        <ul>
                            <li><a href="<?php echo url('index/user/set'); ?>" target="_blank"><?php echo user('username'); ?></a></li>
                            <li><a href="<?php echo url('index/user/set'); ?>" target="_blank">设置</a></li>
                            <li><a url="<?php echo url('index/api/logout'); ?>" name="确实要退出登录吗" href="javascript:;" class="del_t">退出</a></li>
                        </ul>
                    </div>
                </div>
                <?php else: ?>
                <div class="login_tou">
                    <a href="javascript:;">
                        <img src="/public/img/touxiang.jpg">
                    </a>
                    <div class="login_down">
                        <ul>
                            <li><a href="<?php echo url('index/user/reg'); ?>">注册</a></li>
                            <li><a href="<?php echo url('index/user/login'); ?>">登录</a></li>
                        </ul>
                    </div>
                </div>
                <?php endif; ?>
            </div>
            <div class="serbtn">
                <img src="<?php echo m(); ?>/img/sear.png" />
            </div>
            <!--移动端搜索按钮-->
            <div class="w_search clearfloat">
                <form method="get" class="w_se clearfloat" action="<?php echo url('index/index/soso'); ?>">
                    <input type="text" name="ks" value="<?php echo get('ks',''); ?>" placeholder="关键字" />
                    <span><button type="submit" class="iconfont" style="background-color: rgba(110, 65, 255, 0);"></button></span>
                </form>
                <div class="w_sebtn">取消</div>
            </div>
        </div>
    </div>
    <div class="h_top"></div>    
    <link rel="stylesheet" href="/public/wangEditor/css/wangEditor.min.css">
    <script type="text/javascript" src="/public/wangEditor/js/wangEditor.min.js"></script>
    <style type="text/css" media="all">
    .wangEditor-container .wangEditor-txt pre {
        font-size: 14px;
    }
    .wangEditor-container .wangEditor-txt blockquote {
        display: inline-block;
        border-left: 0px solid #d0e5f2;
        padding: 5px 0px;
        background-color: #ffffff00;
    }
    </style>
    <!--广告位置-->
    <div class="want">
        <?php echo ad(3); ?> 
    </div>
    <div class="carbox clearfloat">
        <div class="carmat">
            <div class="news_tit clearfloat">
                <h1><?php echo $t['title']; ?></h1>
            </div>
            <div class="article_body_wrap">
                <div class="article_top_info">
                    <ul class="article_middle_info">
                        <li><span class="icons"><i class="iconfont">&#xe69b;</i>  </span><?php echo fun_st('comment',array('open'=>1,'fid'=>$t['id'],'m'=>$t['m'])); ?></li>
                        <li><span class="icons"><i class="iconfont">&#xe6e6;</i>  </span><?php echo $t['view']; ?></li>
                        <li><span class="icons"><i class="iconfont">&#xe6bb;</i>  </span><?php echo times($t['time']); ?></li>
                        <li><a href="<?php echo url('index/index/cate',array('alias'=>$cate['alias'])); ?>"><span class="icons"><i class="iconfont">&#xe6bb;</i>  </span><?php echo $cate['name']; ?></a></li>
                    </ul>
                </div>
                <div class="wangEditor-container" style="border: 0px solid #e6e6e6;margin-bottom: 30px">
    		        <div class="wangEditor-txt" style="padding: 0;">
                        <?php if($fufei==1): ?>
                        <a href="javascript:;" class="del_t" style="display: block;line-height: 100px;text-align: center; font-size: 16px;font-weight: 300;color: #5298ff;background-color: #f6f6f6;border: 2px solid #5298ff;border-radius: 5px;" name="确定要付费<?php echo $t['jifen']; ?><?php echo set('jifen',2); ?>查看该内容吗？" url="<?php echo url('index/api/fufei',array('id'=>$t['id'],'m'=>$t['m'])); ?>">付费<?php echo $t['jifen']; ?><?php echo set('jifen',2); ?>查看内容</a>
                        <?php else: ?>
                        <?php echo $t['content']; endif; ?>
                    </div>
                </div>
            </div>
            <?php if(guoji('open2')==1): ?>
            <!--评论-->
            <div class="yellow-skin blog-page" id="plhuifu">
                <div class="article_detail_wrapss single_article_wrap article_wrap format-standard">
                    <div class="comment-area">
                        <div class="comment-box submit-form">
                            <div class="widget-header"><h4 class="huifuSM">评论</h4></div>
                            <script type="text/javascript">
                            $(document).ready(function(){
                                $('.huifuSM').click(function(){
                                    $(".huifuS").val("");
                                    $(".huifuSM").html("评论");
                                });
                            });
                            </script> 
                            <div class="comment-form">
                                <form class="layui-form layui-form-pane form1" url="<?php echo url('index/api/comment_add'); ?>" t_url="javascript:parent.location.reload();" id="commentform">
                                    <input type="hidden" name="id" value="<?php echo $t['id']; ?>">
                                    <input type="hidden" name="m" value="<?php echo $t['m']; ?>">
                                    <input type="hidden" class="huifuS" name="tid" value="0">
                                    <div class="row">
                                        <div class="col-lg-12 col-md-12 col-sm-12">
                                            <div class="form-group">
                                                <textarea id="textarea" name="content" class="form-control" cols="50" rows="10" placeholder="说出您的看法...."></textarea>
                                            </div>
                                        </div>
                                        <div class="pt-10" style="float: right;">
                                            <a href="javascript:;" lay-submit lay-filter="cms1" class="layui-btn btn"><i class="layui-icon">&#xe609;</i> 评 论 </a>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="all-comments mt-10">
                            <div class="widget-header" style="width: 50%;"><h4><?php echo fun_st('comment',array('open'=>1,'fid'=>$t['id'],'m'=>$t['m'])); ?> 条评论</h4></div>
                            <div class="comment-list">
                                <ul>
                                    <?php $_result=fun_s('comment',array('open'=>1,'tid'=>0,'fid'=>$t['id'],'m'=>$t['m']),'id desc',10,false,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "<div align='center' style='padding: 100px 0px 100px 0px;'>你来消灭 零 评论</div>" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <li class="article_comments_wrap">
                                        <article>
                                            <div class="article_comments_thumb">
                                                <a href="<?php echo url('index/user/uid',array('id'=>$vo['uid'])); ?>" target="_blank">
                                                    <img src="<?php echo fun_sc_p('member', array('userid'=>$vo['uid']), 'userhead'); ?>" alt="<?php echo fun_sc_p('member', array('userid'=>$vo['uid']), 'username'); ?>">
                                                </a>
                                            </div>
                                            <div class="comment-details">
                                                <div class="comment-meta">
                                                    <div class="comment-left-meta">
                                                        <h4 class="author-name"><?php echo fun_sc_p('member', array('userid'=>$vo['uid']), 'username'); ?><span class="selected"><i class="fas fa-bookmark"></i></span></h4>
                                                        <div class="comment-date"><?php echo times($vo['time']); ?></div>
                                                    </div>
                                                    <div class="comment-reply"><a href="#plhuifu" class="reply huifu<?php echo $vo['id']; ?>"><span class="icona">
                                                        <i class="iconfont">&#xe718;</i> </span>回复</a>
                                                    </div>
                                                    <script type="text/javascript">
                                                    $(document).ready(function(){
                                                        $('.huifu<?php echo $vo['id']; ?>').click(function(){
                                                            $(".huifuS").val("<?php echo $vo['id']; ?>");
                                                            $(".huifuSM").html("回复 @ <?php echo fun_sc_p('member', array('userid'=>$vo['uid']), 'username'); ?>");
                                                        });
                                                    });
                                                    </script>
                                                </div>
                                                <div class="comment-text"><?php echo htmlspecialchars_decode($vo['content']); ?></div>
                                            </div>
                                        </article>
                                        <?php $_result=fun_s('comment',array('open'=>1,'tid'=>$vo['id'],'fid'=>$t['id'],'m'=>$t['m']),'id desc',10,false,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                            <ul class="children"><li class="article_comments_wrap">
                                                <article>
                                                    <div class="article_comments_thumb">
                                                        <a href="<?php echo url('index/user/uid',array('id'=>$v['uid'])); ?>" target="_blank">
                                                            <img src="<?php echo fun_sc_p('member', array('userid'=>$v['uid']), 'userhead'); ?>" alt="<?php echo fun_sc_p('member', array('userid'=>$v['uid']), 'username'); ?>">
                                                            </a>
                                                    </div>
                                                    <div class="comment-details">
                                                        <div class="comment-meta">
                                                            <div class="comment-left-meta">
                                                                <h4 class="author-name"><?php echo fun_sc_p('member', array('userid'=>$v['uid']), 'username'); ?></h4>
                                                                <div class="comment-date"><?php echo times($v['time']); ?></div>
                                                            </div>
                                                        </div>
                                                        <div class="comment-text"><?php echo htmlspecialchars_decode($v['content']); ?></div>
                                                    </div>
                                                </article>
                                            </li>
                                        </ul>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                    </li>
                                    <?php endforeach; endif; else: echo "<div align='center' style='padding: 100px 0px 100px 0px;'>你来消灭 零 评论</div>" ;endif; ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div> 
            </div>     
            <!--评论end-->
            <?php endif; ?>
        </div>
        
        <!--右边-->
        <div class="drivebox">
            <div class="industbox pb-10">
                <div class="essay">
                    <div class="perima clearfloat">
                        <div class="perpic">
                            <a href="<?php echo url('index/user/uid',array('id'=>$t['uid'])); ?>" target="_blank">
                                <img src="<?php echo fun_u($t['uid'], 'userhead'); ?>">
                            </a>
                        </div>
                        <div class="pername"><?php echo fun_u($t['uid'], 'username'); ?></div>
                    </div>
                    <div class="per_intr">	<a href=""><?php echo dingyi(fun_u($t['uid'], 'description'),'这个人很懒没有留下什么..'); ?></a>
                    </div>
                    <!--头像-->
                    <div class="cillbox clearfloat">
                        <div class="cill">
                            <a href="javascript:;">
                                <p class="cill_num"><?php echo fun_st('html', array('uid' => $t['uid'])); ?></p>
                                <p class="cill_name">文章</p>
                            </a>
                        </div>
                        <div class="cill">
                            <a href="javascript:;">
                                <p class="cill_num"><?php echo fun_st('comment', array('uid' => $t['uid'])); ?></p>
                                <p class="cill_name">评论</p>
                            </a>
                        </div>
                        <div class="cill">
                            <a href="javascript:;">
                                <p class="cill_num"><?php echo fun_u($t['uid'], 'point'); ?></p>
                                <p class="cill_name"><?php echo set('jifen',2); ?></p>
                            </a>
                        </div>
                    </div>
                    <div class="cilllike clearfloat">
                        <div class="atttent">	<a href="javascript:;" class="shoucang" url="<?php echo url('index/api/shoucang',array('id'=>$t['id'],'m'=>$t['m'])); ?>"><?php if(fun_st('shoucang',array('tid'=>$t['id'],'m'=>$t['m']))>0): ?>收藏成功<?php else: ?>收藏<?php endif; ?></a>
                        </div>
                        <div class="atttent">	<a href="javascript:;" class="dianzan" zan="<?php echo $t['zan']+1; ?>" url="<?php echo url('index/api/zan',array('id'=>$t['id'],'m'=>$t['m'])); ?>">点赞(<span class="dianzans"><?php echo $t['zan']; ?></span>)</a>
                        </div>
                    </div>
                </div>
            </div>
            <!--热门文章-->
            <div class="industbox">
                <div class="widget-header"><h4>同类热门</h4></div>
                <div class="indust">
                    <ul>
                        <?php $_result=fun_sd('html',array('f.open'=>1),$t['tid'],'view desc','8',1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <li>
                            <a href="<?php echo url('index/index/html',array('id'=>$vo['id'])); ?>" class="clearfloat">
                                <div class="industpic">
                                    <img src="<?php echo pic($vo['content']); ?>" />
                                </div>
                                <div class="industcont">
                                    <h1><?php echo $vo['title']; ?></h1>
                                    <p><?php echo cut_c($vo['content'],15); ?></p>
                                </div>
                            </a>
                        </li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
            </div> 
        </div>
    </div>
    <!--预埋钩子-->
    <?php echo hook('indexhtml'); ?>
    <link rel="stylesheet" href="/public/css/ir-black.css">
    <script src="/public/js/highlight.min.js"></script> 
    <script>hljs.initHighlightingOnLoad();</script> 
        <div class="footbox">
        <div class="footer clearfloat">
            <div class="analyse">
                <h1><?php echo set('title'); ?></h1>
                <p>
                    <!--免费版请保留下面115cms.com的版权谢谢！如需去版权请购买授权-->
                    <span>Copyright ©2021 <a style="color: #bcb7b7;" href="http://www.115cms.com" target="_blank"><?php echo config('web.name'); ?> V<?php echo config('web.banben'); ?></a>All Rights Reserved.<a style="color: #bcb7b7;" href="http://www.beian.miit.gov.cn/" target="_blank"><?php echo set('icp'); ?></a>
					</span>
                </p>
                <p class="ao"><?php echo set('banquan'); ?><?php echo set('tongji'); ?></p>
            </div>
            <div class="footline"></div>
            <div class="about">
                <h1>关于我们</h1>
                <?php $_result=fun_s('dan',array('open'=>1),'id desc',20,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <p><a href="<?php echo url('index/index/dan',array('alias'=>$vo['alias'])); ?>"><?php echo $vo['title']; ?></a></p>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <div class="serve">
                <h1>底部导航</h1>
                <?php $_result=fun_s('link',array('open'=>1,'wz'=>3),'px desc',20,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <p><a <?php if($vo['xin']==1): ?>target="_blank"<?php endif; ?> href="<?php echo $vo['lianjie']; ?>"><?php echo $vo['name']; ?></a></p>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <div class="footline"></div>
            <div class="follow">
                <img style="height: 150px;width: 150px;" src="<?php echo guoji('ma'); ?>" />
            </div>
        </div>
    </div>
    <!--预埋钩子-->
    <?php echo hook('indexfooter'); ?>
</body>
<script type="text/javascript" src="/public/js/form_ajax.js?v=<?php echo set('banben'); ?>"></script>
</html>  
    <script>bianjiqi();</script> 